//
//  ChanPinCollectionViewCell.m
//  NBProduct
//
//  Created by ping on 15/11/2.
//  Copyright (c) 2015年 ping. All rights reserved.
//

#import "ChanPinCollectionViewCell.h"

@implementation ChanPinCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    
    return self;
}

-(void)initView{
    self.backgroundColor = [UIColor whiteColor];
    _myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5 * _kscW, 5 * _kscH, self.width - 10 * _kscW, self.height - 40 * _kscH)];
    
    [self.contentView addSubview:_myImageView];
    
        
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(_myImageView.left, _myImageView.bottom, _myImageView.width, 30 * _kscH)];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.font = [UIFont systemFontOfSize:11];
    _titleLabel.numberOfLines = 2;
    [self.contentView addSubview:_titleLabel];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
